package com.lancoo.cvas.pojo.common;

import lombok.Data;

import java.nio.Buffer;

/**
 * @Author: liufeng
 * @CreateTime: 2023-12-07  13:54
 * @Description:
 */

public enum FixType {
//    固排类型 1、教室 2、教师 3、行政班 4、教学班 5、课程

    Room(1,"教室固排"),
    Teacher(2,"教师固排"),
    Class(3,"行政班固排"),
    TeachingClass(4,"教学班固排"),
    Course(5,"课程固排");

    private int code;
    private String msg;

    FixType(int code,String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public static FixType getByCode(int code){
        for (FixType value : FixType.values()) {
            if (value.getCode() == code){
                return value;
            }
        }
        return null;
    }
}
